    .text
    .globl _start
_start:
	b		reset
	nop

	.org 0x180
	/* General exception */
1:	b	1b
	nop

	.align 4

reset:
	/* Clear CP0_SR:BEV to 0 */
	mfc0	$t0, $12
	and		$t0, 0xffbfffff
	mtc0	$t0, $12

	/* Setup stack address */
	la     $sp, stack_top
	bal     main
	nop
hang:
	b       hang
